﻿# qjs.exe所在目录完整路径
$buildBasePath = "";
$corePsPath = $buildBasePath + "coreScript.ps1";

. $corePsPath;

$fileRoot = Get-Location;
$fileRoot = $fileRoot.ToString() + "\build.js";
 
if (Test-Path -Path $fileRoot) {
	BuildAsm $fileRoot;
} else {
	Write-Host "文件不存在，将复制 build.js";
	Copy-Item -Path ($buildBasePath + "\build.js") -Destination $fileRoot
}

Start-Sleep -Seconds 3;